package PlanBL;

import java.util.ArrayList;

import PlanData.PlanDataController;

import po.PlanClassPO;
import po.PlanPO;

public class PlanDriver {
	PlanDataController pdc;
	PlanPO plan;
	
	public PlanDriver()
	{
		pdc = new PlanDataController();
		plan = new PlanPO();
		plan.department = "test001";
		plan.list.add(new PlanClassPO());
	}
	public boolean Insert(PlanPO aim)  
	{
		return pdc.Insert(plan);
	}
	public boolean driveUpdate(PlanPO aim) 
	{
		return pdc.Update(plan);
	}
	public PlanPO driveGet(String department)  
	{
		return pdc.Get("test001");
	}
	public ArrayList<PlanPO> Get()  
	{
		return pdc.Get();
	}

}
